<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" scroll="no">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="renderer" content="webkit">
    <title><?php echo $L['ui_explorer'] . ' - ' . $L['kod_name'] . $L['kod_power_by']; ?></title>
    <link rel="Shortcut Icon" href="./assets/images/favicon.ico">
    <link href="./assets/js/lib/picasa/style/style.css" rel="stylesheet"/>
    <link href="./assets/style/bootstrap.css" rel="stylesheet"/>
    <link rel="stylesheet" href="./assets/style/font-awesome/css/font-awesome.css">
    <!--[if IE 7]>
    <link rel="stylesheet" href="./assets/style/font-awesome/css/font-awesome-ie7.css">
    <![endif]-->

    <link href="./assets/style/skin/<?php echo $config['user']['theme']??'default'; ?>app_explorer.css" rel="stylesheet"
          id='link_css_list'/>

</head>

<?php if (isset($_GET['type'])) { ?>
    <style>.topbar {
            display: none;
        }

        .frame-header {
            top: 0;
        }

        .frame-main {
            top: 50px;
        }</style>
<?php } ?>

<body style="overflow:hidden;" oncontextmenu="return core.contextmenu();">
<?php include(TEMPLATE . 'common/navbar.html'); ?>
<div class="frame-header">
    <div class="header-content">
        <div class="header-left">
            <div class="btn-group btn-group-sm">
                <button class="btn btn-default" id='history_back' title='<?php echo $L['history_back']; ?>'
                        type="button">
                    <i class="font-icon icon-arrow-left"></i>
                </button>
                <button class="btn btn-default" id='history_next' title='<?php echo $L['history_next']; ?>'
                        type="button">
                    <i class="font-icon icon-arrow-right"></i>
                </button>
                <button class="btn btn-default" id='refresh' title='<?php echo $L['refresh_all']; ?>' type="button">
                    <i class="font-icon icon-refresh"></i>
                </button>
            </div>
        </div><!-- /header left -->

        <div class='header-middle'>
            <button class="btn btn-default" id='home' title='<?php echo $L['root_path']; ?>'>
                <i class="font-icon icon-home"></i>
            </button>

            <div id='yarnball' title="<?php echo $L['address_in_edit']; ?>"></div>
            <div id='yarnball_input'><input type="text" name="path" value="" class="path" id="path"/></div>

            <button class="btn btn-default" id='fav' title='<?php echo $L['add_to_fav']; ?>' type="button">
                <i class="font-icon icon-star"></i>
            </button>

            <button class="btn btn-default" id='up' title='<?php echo $L['go_up']; ?>' type="button">
                <i class="font-icon icon-circle-arrow-up"></i>
            </button>
            <div class="path_tips" title="<?php echo $L['only_read_desc']; ?>"><i
                        class="icon-warning-sign"></i><?php echo $L['only_read']; ?></div>
        </div><!-- /header-middle end-->
        <div class='header-right'>
            <input type="text" name="seach"/>
            <button class="btn btn-default" id='search' title='<?php echo $L['search']; ?>' type="button">
                <i class="font-icon icon-search"></i>
            </button>
        </div>
    </div>
</div><!-- / header end -->

<div class="frame-main">
    <div class='frame-left'>
        <ul id="folderList" class="ztree"></ul>
        <div class="bottom_box">
            <div class="box_content">
                <a href="javascript:ui.path.list('*recycle*');" class="cell menuRecycleButton"><i
                            class="font-icon icon-trash"></i><span><?php echo $L['recycle']; ?></span></a>
                <a href="javascript:ui.path.list('*share*');" class="cell"><i
                            class="font-icon icon-share-sign"></i><span><?php echo $L['my_share']; ?></span></a>
                <div style="clear:both"></div>
            </div>
        </div>
    </div><!-- / frame-left end-->
    <div class='frame-resize'></div>
    <div class='frame-right'>
        <div class="frame-right-main">
            <div class="tools">
                <div class="tools-left">
                    <!-- 回收站tool -->
                    <div class="btn-group btn-group-sm kod_recycle_tool hidden">
                        <button id='recycle_clear' class="btn btn-default" type="button">
                            <i class="font-icon icon-folder-close-alt"></i><?php echo $L['recycle_clear']; ?>
                        </button>
                    </div>

                    <!-- 分享 tool -->
                    <div class="btn-group btn-group-sm kod_share_tool hidden">
                        <button id='refresh' class="btn btn-default" type="button">
                            <i class="font-icon icon-folder-close-alt"></i><?php echo $L['refresh']; ?>
                        </button>
                    </div>

                    <!-- 文件功能 -->
                    <div class="btn-group btn-group-sm kod_path_tool">
                        <button id='newfolder' class="btn btn-default" type="button">
                            <i class="font-icon icon-folder-close-alt"></i><?php echo $L['newfolder']; ?>
                        </button>
                        <button id='newfile' class="btn btn-default" type="button">
                            <i class="font-icon icon-file-alt"></i><?php echo $L['newfile']; ?>
                        </button>
                        <button id='upload' class="btn btn-default" type="button">
                            <i class="font-icon icon-cloud-upload"></i><?php echo $L['upload']; ?>
                        </button>

                        <div class="btn-group btn-group-sm">
                            <button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
                                <i class="font-icon icon-tasks"></i>more&nbsp;<span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu pull-right drop-menu-action fadein">
                                <li id="open"><a href='javascript:void(0);'><i
                                                class="font-icon icon-folder-open-alt"></i><?php echo $L['open']; ?></a>
                                </li>
                                <li id="share"><a href='javascript:void(0);'><i
                                                class="font-icon icon-share-sign"></i><?php echo $L['share']; ?></a>
                                </li>
                                <li id="download"><a href='javascript:void(0);'><i
                                                class="font-icon icon-download"></i><?php echo $L['download']; ?></a>
                                </li>
                                <li id="zip"><a href='javascript:void(0);'><i
                                                class="font-icon icon-folder-close"></i><?php echo $L['zip']; ?></a>
                                </li>
                                <li class="divider"></li>
                                <li id="copy"><a href='javascript:void(0);'><i
                                                class="font-icon icon-copy"></i><?php echo $L['copy']; ?></a></li>
                                <li id="rname"><a href='javascript:void(0);'><i
                                                class="font-icon icon-pencil"></i><?php echo $L['rename']; ?></a></li>
                                <li id="cute"><a href='javascript:void(0);'><i
                                                class="font-icon icon-cut"></i><?php echo $L['cute']; ?></a></li>
                                <li id="past"><a href='javascript:void(0);'><i
                                                class="font-icon icon-paste"></i><?php echo $L['past']; ?></a></li>
                                <li id="remove"><a href='javascript:void(0);'><i
                                                class="font-icon icon-trash"></i><?php echo $L['remove']; ?></a></li>
                                <li class="divider"></li>
                                <li id="clone"><a href='javascript:void(0);'><i
                                                class="font-icon icon-external-link"></i><?php echo $L['clone']; ?></a>
                                </li>
                                <li id="createLink"><a href='javascript:void(0);'><i
                                                class="font-icon icon-share-alt"></i><?php echo $L['createLink']; ?></a>
                                </li>
                                <li class="divider"></li>
                                <li id="info"><a href='javascript:void(0);'><i
                                                class="font-icon icon-info"></i><?php echo $L['info']; ?></a></li>
                            </ul>
                        </div>
                    </div>
                    <span class='msg'><?php echo $L['path_loading']; ?></span>
                </div>
                <div class="tools-right">
                    <div class="btn-group btn-group-sm">
                        <button id='set_icon' title="<?php echo $L['list_icon']; ?>" type="button"
                                class="btn btn-default">
                            <i class="font-icon icon-th"></i>
                        </button>
                        <button id='set_list' title="<?php echo $L['list_list']; ?>" type="button"
                                class="btn btn-default">
                            <i class="font-icon icon-list"></i>
                        </button>
                        <div class="btn-group btn-group-sm">
                            <button id="set_theme" title="<?php echo $L['setting_theme']; ?>" type="button"
                                    class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
                                <i class="font-icon icon-dashboard"></i>&nbsp;&nbsp;<span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu pull-right dropdown-menu-theme fadein">
                                <?php
                                $tpl = "<li class='list {this}' theme='{0}'><a href='javascript:void(0);'>{1}</a></li>\n";
                                echo getTplList(',', ':', $config['setting_all']['themeall'], $tpl, $config['user']['theme']??'default', 'this');
                                ?>
                            </ul>
                        </div>
                    </div>
                </div>
                <div style="clear:both"></div>
            </div><!-- end tools -->
            <div id='list_type_list'></div><!-- list type 列表排序方式 -->
            <div class='bodymain html5_drag_upload_box menuBodyMain'>
                <div class="fileContiner"></div>
            </div><!-- html5拖拽上传list -->
        </div>
    </div><!-- / frame-right end-->
</div><!-- / frame-main end-->
<script src="./assets/js/lib/seajs/sea.js"></script>
<script src="./explorer.php?user/common_js&type=explorer&id=thisisrandomstring"></script>
<script type="text/javascript">
    G.this_path = "<?php echo WS_PATH_DATA;?>";
    seajs.config({
        base: "./assets/js/",
        preload: ["lib/jquery-1.8.0.min"],
        map: [
            [/^(.*\.(?:css|js))(.*)$/i, '$1$2' ]
        ]
    });
    seajs.use("app/src/explorer/main");
</script>
</body>
</html>